package com.tg.app.activity.device;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.ImageView;
import com.tg.app.R;
import com.appbase.custom.constant.CommonConstants;
import com.tg.appcommon.android.LanguageUtils;
import com.tange.base.toolkit.PreferenceUtil;

public class PlaybackZoomGuideActivity extends Activity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        setContentView(R.layout.activity_playback_zoom_guide);
        getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);//需要添加的语句

        View.OnClickListener listener =   new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        };
        getWindow().getDecorView().setOnClickListener(listener);
        ImageView imageView = findViewById(R.id.iv_playback_zoom_guide);
        imageView.setOnClickListener(listener);
        if(!LanguageUtils.isZh(this)){
            imageView.setImageResource(R.mipmap.playback_zoom_guide_en);
        }
        PreferenceUtil.setBoolean(this, CommonConstants.PRE_PLAKBACK_ZOOM_GUIDE,true);
    }



    @Override
    public void onBackPressed() {
        super.onBackPressed();
        finish();
    }
}
